package com.ruoyi.patrol.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.patrol.domain.PtLineRecordDetail;

/**
 * 巡逻点位记录Mapper接口
 * 
 * @author mlb
 * @date 2022-11-16
 */
public interface PtLineRecordDetailMapper 
{
    /**
     * 查询巡逻点位记录
     * 
     * @param id 巡逻点位记录ID
     * @return 巡逻点位记录
     */
    public PtLineRecordDetail selectPtLineRecordDetailById(Long id);

    /**
     * 查询巡逻点位记录列表
     * 
     * @param ptLineRecordDetail 巡逻点位记录
     * @return 巡逻点位记录集合
     */
    public List<PtLineRecordDetail> selectPtLineRecordDetailList(PtLineRecordDetail ptLineRecordDetail);

    /**
     * 新增巡逻点位记录
     * 
     * @param ptLineRecordDetail 巡逻点位记录
     * @return 结果
     */
    public int insertPtLineRecordDetail(PtLineRecordDetail ptLineRecordDetail);

    public int insertPtSiteRecordGuards(Map<String,Object> parameter);
    /**
     * 修改巡逻点位记录
     * 
     * @param ptLineRecordDetail 巡逻点位记录
     * @return 结果
     */
    public int updatePtLineRecordDetail(PtLineRecordDetail ptLineRecordDetail);

    /**
     * 删除巡逻点位记录
     * 
     * @param id 巡逻点位记录ID
     * @return 结果
     */
    public int deletePtLineRecordDetailById(Long id);

    /**
     * 批量删除巡逻点位记录
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePtLineRecordDetailByIds(Long[] ids);

    /**
     * 查询巡逻点位个数
     *
     * @param detail 点位巡逻记录
     * @return 巡逻点位记录个数
     */
    public long selectCount(PtLineRecordDetail detail);

    long selectLineFinishDayCount(Long schoolId);
}
